package com.yourname.xhs.service;

import com.yourname.xhs.bean.Note;
import com.yourname.xhs.entity.User;

import java.sql.SQLException;
import java.util.List;

public interface NoteService {
    //创建笔记
    public abstract boolean CreateNote(String title, String content, User user) throws SQLException;

    //查看全部笔记
    public abstract List<Note> selectAllNotes() throws Exception;

    //查看个人笔记
    public abstract List<Note> selectPersonalNote(User user) throws Exception;

    //查看分类笔记
    public abstract List<Note> selectTypeNote() throws Exception;

    //删除笔记 所有
    public abstract int deleteNoteById(Long id);

    //删除笔记 个人
    public abstract int deletePersonalNoteById(Long id,User user);

    //删除笔记

    //搜索笔记
    public abstract List<Note> searchNotesByTitle(String keyword) throws SQLException;


}
